x86/mm: Do not set page's count_info directly
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 19:14:50 +0000 (19:14 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 19:14:50 +0000 (19:14 +0000)
commit3c6846fa3462faadbe7b34255cb18009a751cd48
treebd24b4b41e8f9b6c94f269319496e23f3b3a93f2
parent3ba7d233c7cf9bcd152314be5992ea3ddf2bc37a
x86/mm: Do not set page's count_info directly

Page offline patch add several flag to page_info->count_info. However,
currently some code will try to set count_info after alloc_domheap_pages
without using "&" or "|" operation, this may cause the new flags lost, since
there are no protection. This patch try to make sure all write to
count_info will only impact specific field.

Also currently shadow code assume count_info is 0 for shadow page,
however, this is invalid after the new flags. Change some assert in
shadow code.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/mm/hap/hap.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/arch/x86/mm/shadow/private.h